package net.itfenxiang.mybatisplus.trans.controller;


import lombok.AllArgsConstructor;
import net.itfenxiang.mybatisplus.trans.entity.SysLogLogin;
import net.itfenxiang.mybatisplus.trans.service.ISysLogLoginService;
import net.itfenxiang.mybatisplus.trans.service.impl.SysLogLoginServiceImpl;
import net.itfenxiang.mybatisplus.trans.utils.PageResult;
import net.itfenxiang.mybatisplus.trans.vo.SysLogLoginVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 登录日志 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-04-29
 */
@RestController
@RequestMapping("/sys/login")
@AllArgsConstructor
public class SysLogLoginController {

    private final ISysLogLoginService logLoginService;

    @GetMapping("page")
    public PageResult<SysLogLoginVO> page(){
        return logLoginService.page();
    }

    @GetMapping("all")
    public List<SysLogLoginVO> list(){
        return logLoginService.listAll();
    }

}
